Skip to content

fix(robot-repo-automaton): satisfy clippy needless_bool in confidence.rs - #705

Open
hyperpolymath wants to merge 2 commits into
mainfrom
fix/clippy-needless-bool-confidence
Open

hyperpolymath wants to merge 2 commits into
mainfrom
fix/clippy-needless-bool-confidence

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

Return the any() result directly in confidence.rs instead of an if guard that returns true, followed by a literal false. Behaviour is unchanged. The CI toolchain's clippy (Rust 1.100) rejects the old form under -D warnings (clippy::needless_bool), which turned build · test · clippy (robot-repo-automaton) red on every PR, including #704.

One file, one commit, nothing else changed.

Test results

  • cargo clippy --release --all-targets -- -D warnings: clean locally (Rust 1.97).
  • cargo test --release --lib confidence: 22 passed.
  • The newer-clippy result will come from this PR's own CI, which is the first run of that lint on main-based code.

Generated by Claude Code

Return the any() result directly instead of an if guard that returns a
bool literal followed by a literal false. Behaviour is unchanged; newer
stable clippy rejects the old form under -D warnings.

Copy link
Copy Markdown
Owner Author

The red GSBot build, tests and dependency security and CI/gate here are not from this diff (a one-line change in robot-repo-automaton/src/confidence.rs). The GSBot audit fails on RUSTSEC-2026-0592 (url), RUSTSEC-2026-0543 (chrono) and RUSTSEC-2024-0388 (derivative) in bots/gsbot/Cargo.lock. #706 patches url and records the other two as departure rows, per the owner ruling. The clippy job is the one this PR fixes.


Generated by Claude Code

@hyperpolymath
hyperpolymath marked this pull request as ready for review November 22, 2026 12:05
@hyperpolymath hyperpolymath assigned Copilot and unassigned Copilot Nov 22, 2026
Repository owner deleted a comment from coderabbitai Bot Nov 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants